package com.wzh.yebServe.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 * @Author wzh
 * @create 2022/11/19 17:54
 * @Description:
 */
@Data
@NoArgsConstructor
@ApiModel("民族类")
@TableName("t_nation")
@RequiredArgsConstructor
@EqualsAndHashCode(callSuper = false,of = "name")
public class Nation implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "民族名字")
    @Excel(name = "民族")
    @NonNull
    private String name;
}
